package cj.com.chabaike.ui.act.LonginAndJoin;

import android.app.ActionBar;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;

import com.balysv.materialmenu.MaterialMenuDrawable;

import cj.com.chabaike.R;

/**
 * Created by bingo on 2015/8/14.
 */
public class HistoryPager extends ActionBarActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.history_layout);
        initToolbar();
    }


    private void initToolbar() {
        Toolbar mToolbar = (Toolbar) findViewById(R.id.toolbar_re);
        mToolbar.setTitle("");
        setSupportActionBar(mToolbar);



        mToolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

                finish();

            }
        });
//        mToolbar.setNavigationIcon(menuIcon);

        MaterialMenuDrawable menuIcon = new MaterialMenuDrawable(this, Color.WHITE, MaterialMenuDrawable.Stroke.THIN);
        menuIcon.setIconState(MaterialMenuDrawable.IconState.ARROW);
        mToolbar.setNavigationIcon(menuIcon);
        menuIcon.setNeverDrawTouch(true);
    }
}
